#ifndef __OLED_H_
#define __OLED_H_	

#include "main.h"

#define OLED_ADDRESS  0x78     //SSD1306驱动芯片的地址有0x78和0x7A两种，默认0x78；
void WriteCmd(unsigned char I2C_Command);  //写命令
void WriteDat(unsigned char I2C_Data) ; //写数据
void OLED_Init(void);
void OLED_SetPos(unsigned char x , unsigned char y);  //设置起始点坐标
void OLED_Fill(unsigned char fill_Data); //全屏填充
void OLED_CLS(void); //清屏
void OLED_ON(void);   //将OLED从休眠中唤醒
void OLED_OFF(void);   //将OLED从唤醒中休眠
void OLED_ShowStr(unsigned char x,unsigned char y, unsigned char ch[], unsigned char TextSize);
void OLED_showCN(unsigned char x,unsigned char y,unsigned char N);
void OLED_DrawBMP (unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,unsigned char BMP[]);
void OLED_ShowValue(unsigned char x, unsigned char y, int value, unsigned char TextSize);  //实现更新传感器所读到的数据.

void OLED_Test(void);

uint32_t OLED_Pow(unsigned char x,unsigned char y);

#endif
